package com.weakteam.mobile.minimum.data;

import java.util.Map;

/**
 * Created by Nail Sharipov (nailxsharipov@gmail.com) on 11.11.2014.
 */
public class CityData {

    private String cityId;
    private String title;
    private String url;

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public CityData() {

    }

    public CityData(Map<String, String> data) {
        if (data.containsKey("id")) {
            this.cityId = data.get("id");
        }
        if (data.containsKey("title")) {
            this.title = data.get("title");
        }
        if (data.containsKey("url")) {
            this.url = data.get("url");
        }
    }

}
